build: Set no_undefined in Makefile.decl
authorРуслан Ижбулатов <lrn1986@gmail.com>
Tue, 9 Sep 2014 14:48:17 +0000 (14:48 +0000)
committerBenjamin Otte <otte@redhat.com>
Mon, 15 Sep 2014 14:35:40 +0000 (16:35 +0200)
This simplifies the code and - more importantly - fixes the cases like
in testsuite/reftests where the no_undefined definition was missing.

https://bugzilla.gnome.org/show_bug.cgi?id=736382

Makefile.decl
gdk/Makefile.am
gtk/Makefile.am
libgail-util/Makefile.am
modules/input/Makefile.am
modules/printbackends/cloudprint/Makefile.am
modules/printbackends/cups/Makefile.am
modules/printbackends/file/Makefile.am
modules/printbackends/lpr/Makefile.am
modules/printbackends/papi/Makefile.am
modules/printbackends/test/Makefile.am

index 901b64b172444d9bd1af6b701c1989095bb29901..4bc7784b60d419f10555e062637c1fea1821bd46 100644 (file)
@@ -26,6 +26,10 @@ SKIP_GDKTARGET = \
        echo "Gtk+Tests:INFO: Skipping GUI tests for non-X11 target."
 endif
 
+if PLATFORM_WIN32
+no_undefined = -no-undefined
+endif
+
 XVFB_START = \
        ${XVFB} -help 2>/dev/null 1>&2 \
        && XID=`for id in $(XIDS) ; do test -e /tmp/.X$$id-lock || { echo $$id; exit 0; }; done; exit 1` \
index e3860a972d99cdd26b893b567fad387858ec572d..5f0c1e5d0aa99ee98b78c87fbb4fda59adb88a20 100644 (file)
@@ -42,10 +42,6 @@ AM_CPPFLAGS =                                \
        $(GTK_DEBUG_FLAGS)              \
        $(GDK_DEP_CFLAGS)
 
-if PLATFORM_WIN32
-no_undefined = -no-undefined
-endif
-
 # libtool stuff: set version and export symbols for resolving
 # since automake doesn't support conditionalized libsomething_la_LDFLAGS
 # we use the general approach here
index 2ec3cd2957a65a1f8fc2d182b5081984217869d7..17ca61429275640b4c7d5993faf847f211ee4a19 100644 (file)
@@ -79,10 +79,6 @@ AM_CPPFLAGS =                                                \
        $(GTK_DEP_CFLAGS)                               \
        $(INCLUDED_IMMODULE_DEFINE)
 
-if PLATFORM_WIN32
-no_undefined = -no-undefined
-endif
-
 if OS_WIN32
 gtk_def = gtk.def
 gtk_win32_symbols = -export-symbols $(srcdir)/gtk.def
index 9422f8a27ea02867a23ab44432431cb1e85067eb..8ac0264a9d0384c9fc5863fc927f4e768d84f833 100644 (file)
@@ -1,9 +1,6 @@
 include $(top_srcdir)/Makefile.decl
 
 EXTRA_DIST += gailutil.def
-if PLATFORM_WIN32
-no_undefined = -no-undefined
-endif
 if OS_WIN32
 export_symbols = -export-symbols $(srcdir)/gailutil.def
 gailutil.def: libgailutil-3.la
index 44df55f509f360951952ac1b106400f3b6227a3f..519be8e84aeaa993cbdcae805012d83d4bd96f3f 100644 (file)
@@ -1,10 +1,6 @@
 ## Makefile.am for gtk+/modules/input
 include $(top_srcdir)/Makefile.decl
 
-if PLATFORM_WIN32
-no_undefined = -no-undefined
-endif
-
 AM_CPPFLAGS = \
        -I$(top_srcdir)                 \
        -I$(top_srcdir)/gdk             \
index 6408d4cbbfacf6872a8e2e47dac1f79c92c6229d..d2d434fec3e94774b3bb963c42f88c94292b84e8 100644 (file)
@@ -1,9 +1,5 @@
 include $(top_srcdir)/Makefile.decl
 
-if PLATFORM_WIN32
-no_undefined = -no-undefined
-endif
-
 backenddir = $(libdir)/gtk-3.0/$(GTK_BINARY_VERSION)/printbackends
 
 backend_LTLIBRARIES = libprintbackend-cloudprint.la
index 33520bea48fafc8cf41a43fc285aeb10be679fb2..09a9f893cfd6056c3fc5208d3f80d8a45ed028e9 100644 (file)
@@ -1,9 +1,5 @@
 include $(top_srcdir)/Makefile.decl
 
-if PLATFORM_WIN32
-no_undefined = -no-undefined
-endif
-
 AM_CPPFLAGS = \
        -I$(top_srcdir)                                 \
        -I$(top_srcdir)/gtk                             \
index c0189f10a764f7366efa352a9457902ce44894c4..9b51bf4e12a1a80d847e0f3280418b03baf6f382 100644 (file)
@@ -1,9 +1,5 @@
 include $(top_srcdir)/Makefile.decl
 
-if PLATFORM_WIN32
-no_undefined = -no-undefined
-endif
-
 backenddir = $(libdir)/gtk-3.0/$(GTK_BINARY_VERSION)/printbackends
 
 backend_LTLIBRARIES = libprintbackend-file.la
index ff51351d3d9d5c872a6ccf4a37c2b7c9e475d208..5a7517009e7a0586c42ee8397229d68ef13ee42b 100644 (file)
@@ -1,9 +1,5 @@
 include $(top_srcdir)/Makefile.decl
 
-if PLATFORM_WIN32
-no_undefined = -no-undefined
-endif
-
 AM_CPPFLAGS = \
        -I$(top_srcdir)                                 \
        -I$(top_srcdir)/gtk                             \
index 5388baa3a359389cd14a883c1aa43f814f600f4f..7176eba2ddf5cd2bb1fb32c1ce7f3dda81103aa6 100644 (file)
@@ -1,6 +1,4 @@
-if OS_WIN32
-no_undefined = -no-undefined
-endif
+include $(top_srcdir)/Makefile.decl
 
 AM_CPPFLAGS = \
        -I$(top_srcdir)                                 \
index 69b3ff1ba6d948215b4166ee758283fec9ce6ed2..bff5e93c7ae6ee1d4195f053ccaa7255a1aafcd9 100644 (file)
@@ -1,9 +1,5 @@
 include $(top_srcdir)/Makefile.decl
 
-if PLATFORM_WIN32
-no_undefined = -no-undefined
-endif
-
 backenddir = $(libdir)/gtk-3.0/$(GTK_BINARY_VERSION)/printbackends
 
 backend_LTLIBRARIES = libprintbackend-test.la